<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>代维调度待办列表</title>
    <link rel="stylesheet" type="text/css" href="../../css/aui-win.css" />
    <link rel="stylesheet" href="../../script/ccssoft/css/ccssoft-lite.css" />
</head>

<body>
    <header class="aui-bar aui-bar-nav ccssoft-aui-bar-theme" id="header">
        <a class="aui-btn ccssoft-aui-bar-theme aui-pull-left" id="back" onclick="api.closeWin();"> <span class="aui-iconfont aui-icon-left"></span> </a>
        <div class="aui-title">
            代维调度任务
        </div>
        <a class="aui-pull-right" tapmode onclick="showPopup()"> <span class="aui-iconfont aui-icon-search"></span> </a>
    </header>
    <div id="isshow" class="aui-tab">
        <ul id="tabBox" class="aui-tab-nav">
            <li tabName = 'generationBillListallFrm' class="active" tapmode>
                待领取
            </li>
            <!-- <li tabName = "generationBillListFinshFrm" tapmode>
                站址已领取
            </li> -->
            <li tabName = "generationBillListmeFrm" tapmode>
                我领取
            </li>
        </ul>
    </div>
</body>
<script type="text/javascript" src="../../script/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/constant.js"></script>
<script type="text/javascript" src="../../script/debug.js"></script>
<script type="text/javascript" src="../../script/doT.min.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/config.js"></script>
<script type="text/javascript" src="../../script/client.api.js"></script>
<script type="text/javascript" src="../../script/aui-alert.js"></script>
<script type="text/javascript">
    refreshFrame = function() {
        var header = initHeader();
        var headerPos = $api.offset(header);
        var body_h = $api.offset($api.dom('body')).h;
        // wxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
        api.openFrameGroup({
            name : 'xunjian_header_tab',
            rect : frameRect(),
            preload : 0,
            frames : [{
                name : 'generationBillListallFrm',
                url : 'generationBillListNumFrm.html',
                pageParam : {
                  lit:2,
                  name:api.pageParam.name
                },
                bounces : false
            }
            // , {
            //     name : 'generationBillListFinshFrm',
            //     url : 'generationBillListNumFrm.html',
            //     pageParam : {
            //       lit:1,
            //       name:api.pageParam.name
            //     },
            //     bounces : false
            // }
            , {
                name : 'generationBillListmeFrm',
                url : 'generationBillListNumFrm.html',
                pageParam : {
                  lit:0,
                  name:api.pageParam.name
                },
                bounces : false
            }]
        }, function(ret, err) {
            if (ret) {
                $('#tabBox li:eq(' + ret.index + ')').addClass('active').siblings().removeClass('active');
            }
        });
        /*jquery事件:tab切换*/
        $('#tabBox li').click(function() {
            $(this).addClass('active').siblings().removeClass('active');
            api.setFrameGroupIndex({
                name : 'xunjian_header_tab',
                index : $(this).index(),
                scroll : true
            });
        });

        // wxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    }

    // 筛选页面
    function showPopup() {
      var query_setting = {
          stationNameOpt4 : true,
          // stationNameOpt5 : true,
          stationNameOpt3 : true,
          begintimetype:true,
          winName : api.winName,
          frameName : $('#tabBox li.active').attr('tabName'),
          callback : 'cb_queryWaitTaskList'
      };

        api.openFrame({
            name : 'popup_query_' + $('#tabBox li.active').attr('tabName'),
            url : '../dialog/popup_query.html',
            rect : {
                x : 0,
                y : 0,
                w : 'auto',
                h : 'auto'
            },
            bounces : false,
            reload : true,
            pageParam : query_setting
        });
    }
    apiready = function() {
        refreshFrame();
        $api.addEvt($api.byId('back'), 'click', function() {
            api.closeWin();
        });
    };
</script>

</html>
